tools: libxl: Handle failure to create qemu dm logfile
authorIan Campbell <ian.campbell@citrix.com>
Mon, 13 Jul 2015 12:31:23 +0000 (13:31 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 15 Jul 2015 09:53:51 +0000 (10:53 +0100)
commite9d3a859977913704605e0fd87887451b12d4722
treed0aa4fad2b8f0efcb901c2efe4b75fad3dff541a
parentd924ddbf59f54f432f5fb6907d1262ddb9a9070a
tools: libxl: Handle failure to create qemu dm logfile

If libxl_create_logfile fails for some reason then
libxl__create_qemu_logfile previously just carried on and dereferenced
the uninitialised logfile.

Check for the error from libxl_create_logfile, which has already
logged for us.

This was reported as Debian bug #784880.

Reported-by: Russell Coker <russell@coker.com.au>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: 784880@bugs.debian.org
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_dm.c